package com.scu.qingshi.common.enums;

/**
 * 异常错误码
 * @author qingshi
 */
public enum ExceptionCodeEnum {

    SUCCESS(200,"访问成功"),

    FAIL(400,"访问失败"),

    SYSTEM_EXCEPTION(500,"系统错误"),

    DOMAIN_ERROR(501,"领域模型错误"),

    DATA_ERROR(600,"数据错误"),

    DUPLICATE_SUBMIT(401,"重复提交");

    private int code;

    private String msg;

    private ExceptionCodeEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

}
